package com.xiaoming;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

import java.io.IOException;


@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
public class WebBootstrap {
    @Configuration
    @PropertySource("classpath:/application.properties")
    @ComponentScan("com.xiaoming.service")
    @EnableDubbo
    public class ConsumerConfiguration {

    }
    public static void main(String[] args) throws IOException {
        SpringApplication.run(WebBootstrap.class);
    }
}
